<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('推荐药维护')" />
</head>
<body>
<div class="container-div">
    <div class="row">

        <div class="col-sm-12 search-collapse">
            <form id="post-form">
                <div class="select-list">
                    <ul>
                        <li>
                            药品类型：<select name="classname"  id="deviceType">
                            <option value="中成药类">中成药类</option>
                            <!--                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>-->
                           <!-- <option th:each="deviceType : ${deviceTypeList}" th:text="${deviceType}" th:value="${deviceType}"></option>-->
                            <option value="食品类">食品类</option>
                            <option value="西药类">西药类</option>

                        </select>
                        </li>
<!--                        <li>
                            店内码：<input type="text" name="goodscode" th:placeholder="店内码"/>
                        </li>
                        <li>
                            拼音码：<input type="text" name="plucode" th:placeholder="条码"/>
                        </li>
                        <li>
                            商品名称：<input type="text" name="goodsname" th:placeholder="商品名称"/>
                        </li>-->
                        <!--                        <li>
                                                    客户名称：<input type="text" name="companyName"/>
                                                </li>-->
                        <!--  <li>
                              岗位状态：<select name="status" th:with="type=${@dict.getType('sys_normal_disable')}">
                              <option value="">所有</option>
                              <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                          </select>
                          </li>-->
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>

                        </li>
                    </ul>
                </div>
            </form>
        </div>
<!--
        <div class="btn-group-sm" id="toolbar" role="group">
            <a class="btn btn-success" onclick="$.operate.add()" >
                <i class="fa fa-plus"></i> 新增
            </a>
            &lt;!&ndash;            <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:post:edit">
                            <i class="fa fa-edit"></i> 修改
                        </a>&ndash;&gt;
            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:post:remove">
                <i class="fa fa-remove"></i> 删除
            </a>
            &lt;!&ndash;            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:post:export">
                            <i class="fa fa-download"></i> 导出
                        </a>&ndash;&gt;
        </div>-->
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
    <!--    <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="post-form1">
                    <div class="select-list">
                        <ul>
                            <li>
                                药品信息：<input type="text" name="plucode" th:placeholder="店内码或拼音码"/>
                            </li>
                            &lt;!&ndash;                        <li>
                                                        客户名称：<input type="text" name="companyName"/>
                                                    </li>&ndash;&gt;
                            &lt;!&ndash;  <li>
                                  岗位状态：<select name="status" th:with="type=${@dict.getType('sys_normal_disable')}">
                                  <option value="">所有</option>
                                  <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                              </select>
                              </li>&ndash;&gt;
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>-->

    <!--        <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" >
                    <i class="fa fa-plus"></i> 新增
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:post:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:post:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:post:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>-->

    <!--        <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table1"></table>
            </div>-->
</div>


<th:block th:include="include :: footer" />
<script th:inline="javascript">
    //  var editFlag = [[${@permission.hasPermi('system:post:edit')}]];
    // var removeFlag = [[${@permission.hasPermi('system:post:remove')}]];
    var datas = [[${@dict.getType('sys_normal_disable')}]];
    var prefix = ctx + "baodao/demo01";

    $(function() {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            /*  sortName: "companyId",*/
            modalName: "药品关系",
            columns: [{
                checkbox: true
            },
                {
                    field: 'goodsname',
                    title: '品名'
                },
/*                {
                    field: 'mfrs',
                    title: '生产企业'
                },
                {
                    field: 'norm',
                    title: '包装规则'
                },*/
/*                {
                    field: 'plucode',
                    title: '条码'
                },*/
                {
                    field: 'goodscode',
                    title: '店内码'
                },
            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>